Skip to content

feat(security): add optional 2FA/MFA setup for SSH access#93

Merged
buildplan merged 5 commits intomainfrom
dev
Jan 19, 2026
Merged

feat(security): add optional 2FA/MFA setup for SSH access#93
buildplan merged 5 commits intomainfrom
dev

Conversation

@buildplan
Copy link
Owner

Key Changes:

  • Added configure_2fa function that sets up TOTP-based MFA for the user.
  • Configures SSH to require AuthenticationMethods publickey,keyboard-interactive. This enforces a "Key + Code" (or Key + Code + Password) requirement, preventing access if only the private key is compromised.
  • Generates and displays the QR code directly in the terminal (via qrencode).
  • Includes a "safe rollback" verification step: users must verify a successful login in a new terminal before changes are permanently applied.
  • Extracted show_connection_options from configure_ssh into a global helper function to support connection instructions in both SSH and 2FA setup stages.
  • Updated the final summary report to indicate 2FA status.

@buildplan buildplan merged commit 23858a1 into main Jan 19, 2026
7 checks passed
@buildplan buildplan deleted the dev branch January 19, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant